package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class SConstractSch extends SearchEasyUI{


	private Date releaseStartSch;
	private Date releaseEndSch;
	
	@ValueField(column = "release_time", equal = ">=")
	public Date getReleaseStartSch() {
		return releaseStartSch;
	}

	public void setReleaseStartSch(Date releaseStartSch) {
		this.releaseStartSch = releaseStartSch;
	}

	@ValueField(column = "release_time", equal = "<")
	public Date getReleaseEndSch() {
		if (releaseEndSch != null) {
			return DateUtil.getDateAfterDay(releaseEndSch, 1);
		}
		return createdEndSch;
	}

	public void setReleaseEndSch(Date releaseEndSch) {
		this.releaseEndSch = releaseEndSch;
	}
	
	//根据时间进行搜索的部分
    private Date createdStartSch;
    private Date createdEndSch;

    @ValueField(column = "createdTime", equal = ">=")
    public Date getCreatedStartSch() {
        return createdStartSch;
    }

    public void setCreatedStartSch(Date createdStartSch) {
        this.createdStartSch = createdStartSch;
    }

    @ValueField(column = "createdTime", equal = "<")
    public Date getCreatedEndSch() {
        if (createdEndSch != null) {
            return DateUtil.getDateAfterDay(createdEndSch, 1);
        }
        return createdEndSch;
    }

    public void setCreatedEndSch(Date createdEndSch) {
        this.createdEndSch = createdEndSch;
    }


    private Integer idSch;
    private String uuidSch;
    private String numberSch;
    private String founderSch;
    private Integer customerIdSch;
    private String accpetTypeSch;
    private String provincesSch;
    private String countySch;
    private String faultCategorySch;
    private Date planArriveTimeSch;
    private Date planFinishTimeSch;
    private String taskTypeSch;
    private Integer engineerSch;
    private String transportationSch;
    private String contactNameSch;
    private String contactPositionSch;
    private String contactPhoneSch;
    private String fixedPhoneSch;
    private String chargeSch;
    private String workHoursSch;
    private Integer loopTimeSch;
    private String sendDemandSch;
    private String issueReasonSch;
    private Date releaseTimeSch;
    private String statusSch;
    private Integer loopPeriodSch;
    private Date createdTimeSch;
    private Date editedTimeSch;
    private String contractNameSch;
    private String contractNumSch;
    private Date signTimeSch;
    private String responsibleNameSch;
    private String responsiblePhoneSch;
    private String accountSch;
    private String shortNameSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setUuidSch(String uuidSch){
        this.uuidSch = uuidSch;
    }
    
    @ValueField(column = "uuid")
    public String getUuidSch(){
        return this.uuidSch;
    }

    public void setNumberSch(String numberSch){
        this.numberSch = numberSch;
    }
    
    @ValueField(column = "number")
    public String getNumberSch(){
        return this.numberSch;
    }

    public void setFounderSch(String founderSch){
        this.founderSch = founderSch;
    }
    
    @ValueField(column = "founder")
    public String getFounderSch(){
        return this.founderSch;
    }

    public void setCustomerIdSch(Integer customerIdSch){
        this.customerIdSch = customerIdSch;
    }
    
    @ValueField(column = "customer_id")
    public Integer getCustomerIdSch(){
        return this.customerIdSch;
    }

    public void setAccpetTypeSch(String accpetTypeSch){
        this.accpetTypeSch = accpetTypeSch;
    }
    
    @ValueField(column = "accpet_type")
    public String getAccpetTypeSch(){
        return this.accpetTypeSch;
    }

    public void setProvincesSch(String provincesSch){
        this.provincesSch = provincesSch;
    }
    
    @ValueField(column = "provinces")
    public String getProvincesSch(){
        return this.provincesSch;
    }

    public void setCountySch(String countySch){
        this.countySch = countySch;
    }
    
    @ValueField(column = "county")
    public String getCountySch(){
        return this.countySch;
    }

    public void setFaultCategorySch(String faultCategorySch){
        this.faultCategorySch = faultCategorySch;
    }
    
    @ValueField(column = "fault_category")
    public String getFaultCategorySch(){
        return this.faultCategorySch;
    }

    public void setPlanArriveTimeSch(Date planArriveTimeSch){
        this.planArriveTimeSch = planArriveTimeSch;
    }
    
    @ValueField(column = "plan_arrive_time")
    public Date getPlanArriveTimeSch(){
        return this.planArriveTimeSch;
    }

    public void setPlanFinishTimeSch(Date planFinishTimeSch){
        this.planFinishTimeSch = planFinishTimeSch;
    }
    
    @ValueField(column = "plan_finish_time")
    public Date getPlanFinishTimeSch(){
        return this.planFinishTimeSch;
    }

    public void setTaskTypeSch(String taskTypeSch){
        this.taskTypeSch = taskTypeSch;
    }
    
    @ValueField(column = "task_type")
    public String getTaskTypeSch(){
        return this.taskTypeSch;
    }

    public void setEngineerSch(Integer engineerSch){
        this.engineerSch = engineerSch;
    }
    
    @ValueField(column = "engineer")
    public Integer getEngineerSch(){
        return this.engineerSch;
    }

    public void setTransportationSch(String transportationSch){
        this.transportationSch = transportationSch;
    }
    
    @ValueField(column = "transportation")
    public String getTransportationSch(){
        return this.transportationSch;
    }

    public void setContactNameSch(String contactNameSch){
        this.contactNameSch = contactNameSch;
    }
    
    @ValueField(column = "contact_name")
    public String getContactNameSch(){
        return this.contactNameSch;
    }

    public void setContactPositionSch(String contactPositionSch){
        this.contactPositionSch = contactPositionSch;
    }
    
    @ValueField(column = "contact_position")
    public String getContactPositionSch(){
        return this.contactPositionSch;
    }

    public void setContactPhoneSch(String contactPhoneSch){
        this.contactPhoneSch = contactPhoneSch;
    }
    
    @ValueField(column = "contact_phone")
    public String getContactPhoneSch(){
        return this.contactPhoneSch;
    }

    public void setFixedPhoneSch(String fixedPhoneSch){
        this.fixedPhoneSch = fixedPhoneSch;
    }
    
    @ValueField(column = "fixed_phone")
    public String getFixedPhoneSch(){
        return this.fixedPhoneSch;
    }

    public void setChargeSch(String chargeSch){
        this.chargeSch = chargeSch;
    }
    
    @ValueField(column = "charge")
    public String getChargeSch(){
        return this.chargeSch;
    }

    public void setWorkHoursSch(String workHoursSch){
        this.workHoursSch = workHoursSch;
    }
    
    @ValueField(column = "work_hours")
    public String getWorkHoursSch(){
        return this.workHoursSch;
    }

    public void setLoopTimeSch(Integer loopTimeSch){
        this.loopTimeSch = loopTimeSch;
    }
    
    @ValueField(column = "loop_time")
    public Integer getLoopTimeSch(){
        return this.loopTimeSch;
    }

    public void setSendDemandSch(String sendDemandSch){
        this.sendDemandSch = sendDemandSch;
    }
    
    @ValueField(column = "send_demand")
    public String getSendDemandSch(){
        return this.sendDemandSch;
    }

    public void setIssueReasonSch(String issueReasonSch){
        this.issueReasonSch = issueReasonSch;
    }
    
    @ValueField(column = "issue_reason")
    public String getIssueReasonSch(){
        return this.issueReasonSch;
    }

    public void setReleaseTimeSch(Date releaseTimeSch){
        this.releaseTimeSch = releaseTimeSch;
    }
    
    @ValueField(column = "release_time")
    public Date getReleaseTimeSch(){
        return this.releaseTimeSch;
    }

    public void setStatusSch(String statusSch){
        this.statusSch = statusSch;
    }
    
    @ValueField(column = "status")
    public String getStatusSch(){
        return this.statusSch;
    }

    public void setLoopPeriodSch(Integer loopPeriodSch){
        this.loopPeriodSch = loopPeriodSch;
    }
    
    @ValueField(column = "loop_period")
    public Integer getLoopPeriodSch(){
        return this.loopPeriodSch;
    }

    public void setCreatedTimeSch(Date createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.createdTimeSch;
    }

    public void setEditedTimeSch(Date editedTimeSch){
        this.editedTimeSch = editedTimeSch;
    }
    
    @ValueField(column = "edited_time")
    public Date getEditedTimeSch(){
        return this.editedTimeSch;
    }

    public void setContractNameSch(String contractNameSch){
        this.contractNameSch = contractNameSch;
    }
    
    @ValueField(column = "contract_name")
    public String getContractNameSch(){
        return this.contractNameSch;
    }

    public void setContractNumSch(String contractNumSch){
        this.contractNumSch = contractNumSch;
    }
    
    @ValueField(column = "contract_num")
    public String getContractNumSch(){
        return this.contractNumSch;
    }

    public void setSignTimeSch(Date signTimeSch){
        this.signTimeSch = signTimeSch;
    }
    
    @ValueField(column = "sign_time")
    public Date getSignTimeSch(){
        return this.signTimeSch;
    }

    public void setResponsibleNameSch(String responsibleNameSch){
        this.responsibleNameSch = responsibleNameSch;
    }
    
    @ValueField(column = "responsible_name")
    public String getResponsibleNameSch(){
        return this.responsibleNameSch;
    }

    public void setResponsiblePhoneSch(String responsiblePhoneSch){
        this.responsiblePhoneSch = responsiblePhoneSch;
    }
    
    @ValueField(column = "responsible_phone")
    public String getResponsiblePhoneSch(){
        return this.responsiblePhoneSch;
    }

    public void setAccountSch(String accountSch){
        this.accountSch = accountSch;
    }
    
    @ValueField(column = "account")
    public String getAccountSch(){
        return this.accountSch;
    }
    
    public void setShortNameSch(String shortNameSch){
        this.shortNameSch = shortNameSch;
    }
    
    @ValueField(column = "short_name")
    public String getShortNameSch(){
        return this.shortNameSch;
    }

	


}